package com.aaa.book_mall.dao;

import com.aaa.book_mall.entity.User;

/**
 * @Description: 客户表dao
 * @ClassName: UserDao
 * @Author: fengyun
 * @Date: 2021/2/21 10:42
 * @Version: 1.0
 */
public interface UserDao {
    /* *
     *  根据用户名和密码查询对应的用户信息
     * @param username
     * @param password
     * @return com.aaa.book_mall.entity.User
     * @date 2021/2/21 10:44
     */
    User getUserByUP(String username, String password);

    /* *
     *  根据用户检索数据库中得唯一性
     * @param null
     * @return
     * @date 2021/2/22 11:26
     */
    int getUserByUsername(String username);

    /* *
     *  新增用户
     * @param null
     * @return
     * @date 2021/2/22 13:46
     */
    int insertUser(User user);
}
